package com.todolist.client.event;

import com.google.gwt.event.shared.GwtEvent;

public class RefreshProjectsEvent extends GwtEvent<RefreshProjectsEventHandler> {

    public static Type<RefreshProjectsEventHandler> TYPE = new Type<RefreshProjectsEventHandler>();

    @Override
    public Type<RefreshProjectsEventHandler> getAssociatedType() {
        return TYPE;
    }

    @Override
    protected void dispatch(RefreshProjectsEventHandler refreshProjectsEventHandler) {
        refreshProjectsEventHandler.refreshProjects();
    }
}
